﻿using System;
using Activa.LazyParser;

namespace Activa.SharpTemplate
{
	public class EvaluatingTokenEventArgs<T> : EvaluatingEventArgs<T>
	{
		private readonly TokenMatch _tokenMatch;
		private readonly IParserContext _context;

		public EvaluatingTokenEventArgs(IParserContext context, TokenMatch tokenMatch)
		{
			_context = context;
			_tokenMatch = tokenMatch;
		}

		public TokenMatch TokenMatch
		{
			get { return _tokenMatch; }
		}

		public IParserContext Context
		{
			get { return _context; }
		}
	}
}